// index.js
// 获取应用实例
const app = getApp()

Page({
  data: {
  },
  onLoad(){
    var url = "http://47.108.197.28:3000/top/playlist";
    wx.request({
      url,
      dataType: "json",
      header: {"content-type":"application"},
      method: "GET",
      responseType: "text",
      success: res => {
        this.setData({item:res.data.playlists})
      },
    })
  }
})
